/* 
* @Author: anchen
* @Date:   2017-02-27 10:38:53
* @Last Modified by:   anchen
* @Last Modified time: 2017-03-02 20:30:20
*/

//设置rem
(function(){
    //获取当前浏览器宽度
    var winW = document.documentElement.clientWidth || document.body.clientWidth;
    //将根节点fontsize设置为屏幕宽度的百分之一
    document.documentElement.style.fontSize = winW*0.032 + "px";
    //当页面大小发生改变时,重新修正rem为新窗口尺寸的1-100
    window.onresize = function(){
        document.documentElement.style.fontSize = (document.documentElement.clientWidth || document.body.clientWidth) * 0.032 + "px";
    }
})(window);
//百度地图key   DtQsaNxZ1yOpRffecTRtXbql08hj5fUg
